import 'package:fish_redux/fish_redux.dart';
import 'package:flutter/material.dart';

class UserLoginState implements Cloneable<UserLoginState> {
  TextEditingController phoneController = TextEditingController();
  TextEditingController passwordController = TextEditingController();

  @override
  UserLoginState clone() {
    return UserLoginState()
      ..phoneController = phoneController
      ..passwordController = passwordController;
  }
}

UserLoginState initState(Map<String, dynamic> args) {
  return UserLoginState()
    ..phoneController.text = args['phone']
    ..passwordController.text = args['password'];
}
